/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kidIcarus.comboBox;

import java.lang.reflect.Method;

/**
 *
 * @author squarezty
 */
public class NewClass {

    Method[] methods;
    int position = 0;

    public NewClass(Method[] methods) {
        this.methods = methods;
    }

    public Object next() {
        String str = methods[position].getName();
        position = position + 2;
        return str;

    }

    public boolean hasNext() {
        if (position + 2 == methods.length) {
            return false;
        } else {
            return true;
        }
    }
}
